package com.sunjs.model.back;

import java.util.Map;

public class ReturnDto {

	private Integer code = 0;
	private String message = "";
	private Map<String, Object> data;

	public ReturnDto(Integer code, String message) {
		this.code = code;
		this.message = message;
	}

	public ReturnDto(String message) {
		this.code = -1;
		this.message = message;
	}

	public ReturnDto(Map<String, Object> data) {
		this.data = data;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

}
